package com.justech.eat.repository;

import com.justech.eat.entity.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: eat-service
 * @description: 用户访问接口
 * @author: feifei.li
 * @create: 2020-06-01 16:10
 **/
@Repository
public interface SysUserRepository extends JpaRepository<SysUser, Long> {

    SysUser findByFSourceNo(String sourceNo);

    SysUser findByFUserName(String jobNumber);

    List<SysUser> findAllByFStatus(int status);


}
